tooltip: check $$phase in $rootScope to prevent double $apply error when in isolated scope [fixes #418]