Fix NPE in cookie change detection on login