DS-2206 REST - Fix statistics write context abort, and comm.getsubcom

https://jira.duraspace.org/browse/DS-2206

Quick bug fix for REST, based on an issue that Ivan found where writeStatistics was erroring out. Also community.subcommunities wasn't serializing to xml, so I fixed that.