Fix some crashes in CMBv5.

Using the new SMTK resource interface mixed with CMBv5's
old SMTK resource management is ill-advised, but this at
least gets things running without crashes on the latest
SMTK master.
Status Job ID Name Coverage
  External
passed cdash

failed ghostflow-branch-check-master

failed ghostflow-commit-check

passed smtk@master-junction-osx-shared-release+remus

00:03:03

failed smtk@master-kerbin-windows-shared-release+remus

00:00:26

passed smtk@master-moho-linux-shared-relwithdebinfo+cgm+remus

00:01:56

passed smtk@master-moho-linux-shared-relwithdebinfo+cgm+remus+vtk

00:01:49

passed smtk@master-praxis-windows-shared-release

00:16:16

passed smtk@master-talosiv-osx-shared-release+cgm+matplotlib

00:02:00