Fixed print bug for missing keys

- added a condition to skip the missing keys in the config dict