Gems updated
unset ontology_id on setting state to failed

required to pass the logic_id_check
related to #608