Only set the 'tabs' template variable if there are actually tabs

This is useful for a custom theme for gitit that I'm working on, and it doesn't break the existing default theme, so I hope it should be fine.
Merge pull request #413 from duairc/iftabs

Only set the 'tabs' template variable if there are actually tabs