getUrl: return null on empty string too