Do not try to load user preferences if there is no user (login page, etc).