Skip elements that aren't in the DOM.

This stops rules from failing if they aren't in the DOM yet (a situation which we encounter when combining this with Angular.JS).