canvas: don't draw labels if they are empty

Don't draw labels if they are empty