fix(controller): inject config on top of existing environment

fixes #2100 
I assume `env` will always be populated at least with a default dict? Otherwise we need a null check here.