Fixed a bug that made it throw an error when attempting to change an item with no expiration date.