Fix nil error server crash when user not logged in

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