Fixed a problem where if there were no changes made to attributes the save would fail.