I modified the function to only unpopulate and unset the migrate_node after data from all the forms has been processed.
I modified the function to only unpopulate and unset the migrate_node after data from all the forms has been processed.