Fixed condition that caused server crash when authentication token not found