The setTokenURI() function will successfully set a new _tokenURI for a given tokenId even if the tokenId in question does not exist. 
