Refs #8331 - Fixes crash.

Removed some code that wasn't being executed, removed some code that was
being executed erroneously, and simplified what remained.
Merge remote-tracking branch 'origin/bugfix/8331_fix_crash_when_plotting_group_and_child'