fix bug in ontology cache when karma user folder is empty