Fixed error detection for the schematron validator

Apparently it was returning that the document was valid when the only
errors were prohibited items, probably due to a weirdness of schematron. This
fix will check to see if there are any errors in the validation report
and correctly handle the validation result based on that.