Make auth/preferences more tolerant of api not being loaded.