Fixing use of uninitialized default branch

When there is a non-empty repository with yet uninitialized default_branch page with public projects shows 404. This fixes it