Improve error messages for the config parser

refs #7699