fix(input): check `scope.$$phase` only on `$rootScope`