The traceback was caused by leaving the object class combo box blank (therefore is not directly connected to this patch). But I agree that is's undesirable behavior. I can either add a check that would notify the user that they left the option blank, or set a default value.