Bug fix for issue #77: Error when deleting note when there are no buffers