bugfix: save an empty newly created note crashes the app.