legends.py: fix for empty legend prob
legends.py: fix for empty legend prob

Distrotech/reportlab,kanarelo/reportlab,Distrotech/reportlab,kanarelo/reportlab,Distrotech/reportlab,kanarelo/reportlab,kanarelo/reportlab,Distrotech/reportlab,Distrotech/reportlab,kanarelo/reportlab