Fixed bug where saving an individual document in SGDocumentManager would crash if there were no other documents