Fixed the issue described by Roman. Refs #9949.
Merge branch 'bugfix/9949_coverity_share_ptr' into develop