Fix crash with no terminal defined in config file.