Added additional checks for schematron-1.5 tasks before defining task