Add some NULL-checks for the config path string