Fix Issue #4905(Security Service getUserId in 6.6M3 breaks my app)
-- Fixed getUserId method in Security Service