Make sure Diversity_Api registry gets a valid URL before trying any API ...

...operations.