Fix a getIconUrl() on a non-object

Fix Fatal error: Call to a member function getIconUrl() on a non-object in /views/default/core/avatar/upload.php on line 10

if no $vars['entity'] forward user to referred page