Catch syntax errors when loading tests and report them properly.

This allows the rest of the framework to continue and not come crashing
down due to an error in one test.
Refs #8533
Merge branch 'bugfix/8533_catch_syntax_errors' into develop