Deselecting the final enabled series in the Legend was not being caught

The guard when removing the last enabled element was counting all series; not just the enabled ones. This was causing d3 to attempt to graph a "no-line" graph.