[web] fix AbstractSessionManager.clean_sessions (closes #5757240) [applied]