EXOGTN-1200: Cannot login to workspaces with Crash on JBoss server

Problem analysis
	* PortalLoginModule doesn't check if HttpServletRequest is null

Fix description
	* Check if this is CLI (HttpServletRequest is null) then bypass to other login module