Otherwise the code reaches the isInternalUser on logout, triggered by the search
service, and at a point when it does not have the auth token anymore. Doesn't
impact production builds, but doesn't hurt to make the check more robust say for
people who're trying dev builds.