Check for WrappedNode existence before accessing its xml attribute

This fixes a bug that prevents users from changing a form name before the first time they save the form in form builder.