Added better error handling when a page isn't returning what we want