fix double render error

when accessing some commit by a short url that is in a project that you don't
have an access to