Don't try to upgrade if url is not a string