BugFix: check if user is null

The EPFL candidates can edit their personal information without getting error.
refereces to #292