Phasecheck

check `scope.$$phase` only on `$rootScope`

See #8849