fixes #3071 - OS edit failed on foreign keys since config_template_id was '0' on blank