Split the scanning of the properties element and the user specified element (eg: person, membership, and group) into two separate parse runs. The previous combined run assumed that the properties element would come before all user specified elements. Destiny One is delivering files with the properties element at the very end.
Added a condition in process_membership_doc to catch and ignore empty IDs.