Fix repo override crashing when URL is not defined.

Only override URL if one is provided.

Issue:	#1024