Fix nil error server crash when user not logged in

Allow survey takers, whom has not logged in, to take survey. Fixed server crash due to no method for nil class.