Added error handling for nil user object in auth.
Added error handling for nil user object in auth.

MG-RAST/Shock,wgerlach/Shock,MG-RAST/Shock,teharrison/Shock,wgerlach/Shock,teharrison/Shock,teharrison/Shock,teharrison/Shock,wgerlach/Shock,wgerlach/Shock,MG-RAST/Shock,MG-RAST/Shock,MG-RAST/Shock,wgerlach/Shock,teharrison/Shock,teharrison/Shock