Fix bug where using `synapse.app.media_repository` worker configuration would break the new media endpoints.