[2.3.x] fix the issue #1707
https://java.net/jira/browse/GRIZZLY-1707
"HttpServletRequest.getUserPrincipal throws NullPointerException (HTTPS requests)"