Handle empty URI properties

Apparently SystemProperties.get returns an empty string instead of null.
We should also protect against users accidentally setting this to "".

Change-Id: I16192e8bb67b9671b18653e0ae818263fa23e46a