Check for WrappedNode existence before accessing its xml attribute
Add test case
Merge pull request #4697 from dimagi/name-change-bug-fix

Check for WrappedNode existence before accessing its xml attribute