MDL-48374 behat: improved page load exceptions