NPE when not setting an avatar

Description

When you edit your profile, but do not set an avatar, there's a null pointer exception after you save (code is trying to resize a non-existing image). I noticed this only because I was running in debug mode - the effects are probably negligible - perhaps you cannot 'unset' an avatar, if that's at all possible. Regardless, the NPE should be fixed.

Environment

None
Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Priority

Minor

Assignee

Guus der Kinderen

Reporter

Guus der Kinderen