Support the 'collapseChildren' option in the 'createCollection' callback.
Check for existence of the parent before attempting to collapse.
Build 0232