Add some validation.
Do not re-lookup html elements.

This fixes some issues, where multiple elements where found in
tree-like structures.