Fixed a small oversight in config error checking.