fix implementation of isCached to cope with versionless ontologies