Don't try to sanitize non-existent elements

I want to change how this works and I've got a branch that does it, but
I also wanted to close the issue that brought this up. For now, this is
my approach, but in upcoming releases I will go in another direction.

Fixes #174