Fixed a bug if you want to save an empty note