Don't crash on malformed proxy env var

Signed-off-by: Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com>