transform undefined values in r.modified to null so these attributes will not be ignored by OpenLayers when writing out the WFS-T transaction XML (see #197