Fixed bug in notes when creating a document and no notes were added