Fixed bug with legend output numberOfLegendRows.  It was always at least 1.