Add explicit handling of cases where OWLReasonerFactory is null