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