Fix for loginRequired handling in $stateChangeStart