Fixed a regression in the test runner loading of runtests.py.

Refs #17365, #17366, #18727.