Guard against $rootScope.focused not being defined