Fix NPE in LoginFilter.