fix possible nil-value occurrence error

It seems possible that non_current_active_version?
can throw a Nil-Error, because ontology_version
can (but shouldn't) currently be nil.