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

Checking `scope.$$phase` is dangerous since it does not work on isolated scopes. It exists only on `$rootScope`, and isolated scopes do not inherit it.