Fix create note error when notebook is not selected