Cause undefined environment variables to be parsed as ''.
Merge pull request #2024 from jagoda/fix-default-port

Resolve undefined environment variables to the empty string in the cli.