Update Crawler.php

If HTML is not well-formed XML parsing goes wrong.
[DomCrawler] fixed tests for previous merge