Fix Bug 907304 - Prevent crash when errors were caught from login api