workaround for NPE that occurs in writeData() when one of the items in the 'values' List is null (#1019)