Fix Bug 1057394, only render tab if there is data

@rhelmer @peterbe r?
Is this an unrelated change?