Fixed error in updateSession

After open the activation or change password link the program crashes because is impossible to retrieve the user model from updateSession method if the user isn't logged.