Catch case where no argument are passed.

Missed this when moving script around.
Refs #9639
Merge branch 'feature/9639_doc_tests_inside_ctest' into develop