Bug fix for html not present
Correctly exiting in the event of the html not being retrieveable