Bugfix for doSave. Improve the check-function for saving an item.