Fixed segfault when config file can't be opened.