Fix HTML parsing bug when </script> is in the phantomas results json