Move XMLElement of community.subcommunities to getter to prevent errors
REST writeStats to reuse existing context
Merge pull request #703 from LongsightGroup/DS-2206-rest-bug-fixes

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