Custom Fields Need to be checked 

Forgot to include a check to see if there were any custom fields in the $xml_obj.  

Also I don't know how to use pull requests.  Just add my most recent one - 3348eb8