Fix runtime errors in OntologyDataManagerImpl

Code Reviewer: Daniel Villafuerte

Issue: None