Fix isAuthenticated to work with minifiers.