We now check if a repository exists when a request to delete it is made.
We return a HTTP status 500 if it doesn't.