IDEAS-13: The user avatars are not displayed well when the user is not logged in

Applied the same fix as for http://jira.xwiki.org/browse/XWIKI-9470 by Marius Florea.