404 when canceling create new file in an empty project via ui (7.8)

Steps to reproduce:

  • create new project
  • click "add a file"
  • cancel creation

=> 404, pointing to /tree/master

Expected behavior: go back to .