Fix recreating replication requests on unauthorized responses when using api keys.