Checking page source only if 'content-type' starts with 'text/html'