Improvements for improvements in student panel
Fixes some small issue that were still present in !398 (merged)
- Remove debug log
- Check that reference exists
- Do not set email to
null
in state, preventing the value of an input field to be set tonull
(since React complains about this)