Fix/avatar helper

The avatar helper method returned nil on some inputs. This is more complicated than it has to. So I changed it to always return a string, even it is only an empty one.

OP issue: https://www.openproject.org/issues/1406