MDL-39864: Update config_form_criteria() to accept badge object
MDL-39864: Gracefully handle missing criteria types