Prevent loading empty strings

This will fix loading issues when trying to load an empty string as a url