Issue #2249723 by andrei.dincu: Check anonymous user has access user profiles permission in hook_install