Fix kafka initialize when not defined for environment

Catches no-method error when attempting to call symbolize keys.