Check to make sure that uri is actually set so we don't die.