Fix uninitialized variable warning.

Refs #9639
Merge branch 'feature/9639_doc_tests_inside_ctest' into develop