Fixed an issue with the testharness detection regex

If testharness + testharness report script tags were on the same line,
the regex would greedily capture both, which would lead to a document
without the testharness loaded.