Actually check error returned in createEnvironmentVariables

Signed-off-by: Nathan LeClaire <nathan.leclaire@docker.com>