Fixing WSAS-1707. HTTP 500 error during tenant logging in