in fact environment_context can be None so maybe do a check for that in the config property too.