Fix bug where setting empty notes would cause the edit field to disappear