Fix `ObsoleteNode` error when using `attach_file`

This happened With the `jQuery File Upload` plugin, which replaces the
input after it changes, which made the node obsolete when we came to
remove to _poltergeist_selected attribute.

Closes #115