WP details pane: don't show avatar if not provided

https://www.openproject.org/work_packages/16552

Fixes a broken image being shown for deleted users and in case
Gravatar images are disabled.