500 error when accessing Registry page

Summary

I'm getting a 500 error when accessing the Registry page on my project. I think it comes from the url of the group which contains underscores : https://gitlab.com/HopFab/myproject

Steps to reproduce

Create a group with underscores at the beginning and at the end.
Create a project.
Try to access the Registry page of the project.

What is the current bug behavior?

500 error.

What is the expected correct behavior?

Show the Registry page without error.

Relevant logs and/or screenshots

Capture

Output of checks

This bug happens on GitLab.com.

Gitlab version

GitLab Enterprise Edition 9.1.0-rc4-ee 64c44281

Assignee Loading
Time tracking Loading