Fixed ArrayOutOfBounds when inserting new note with newline and no text