Added and tested some new defensive code for the FolderGroupManager.
I also refactored it to make a large function smaller.  The orginal
complaint was a message by Coll Avtar called "Regarding protege error"
on February 1, 2014.