This happens for example with tests fast/css/appearance-with-pseudo-elements-in-quirks-mode.html and fast/css/appearance-with-pseudo-elements.html. We should just just element is not nullptr.
Created attachment 277609 [details] Patch
Committed r200184: <http://trac.webkit.org/changeset/200184>