make versionless ontology retrieval optional

the previous change made unit tests for OntologyUtils fail, as we assume
that we are able to send in any number of rdf:type owl:Ontology
statements and the system will not recognise them unless they have an
owl:versionIRI statement attached to them