system-test: check for valid xhtml in add_instrumentation js insertion