removing null values when saving a new item. closes #27