MDL-48441 core_user: profile.php, view.php now handle guests the same