Fixing problem when the page's html is changed by other extensions

This fixes a compatibility problem with other extensions when they add extra html nodes into the content.

Form is not guaranteed to be the first child of content.

Checking every child resolve the issue.

Thanks to @beaubbe that found it.

---

I really think it's time that we update XMLElement in order to make search in its tree easier...