Fix dashboard crash if there is no data.