Fix problem with overriding SEPARATE_DOC_TESTS variable.

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