Fixing crashing issue in all the data container subclasses when trying to write Xdmf data.