fixed nav bar for empty repos (fixes #4375)

Fixes a regression introduced by 74c8a63

Closes #4375