Fixed segfault with absent macros in config file

Fixed segfault if macros are used but they aren’t in the config file (#2570).