[DS-1832] Proxy configuration set in system properties if empty

The proxy configuration is always set in the system properties even if the property is empty (there is a null check but by default the property is empty so it will pass the null test). 
This pull request will not only check if the value isn't null but also if the value contains a value.