Issue #1720576: Prevent notices in token_form_field_ui_field_edit_form_alter() if the field is locked.