Fix marking sheet editor bug that prevented removal of the last item/group or note