fix derivatives for products with zero terms
Merge pull request #5 from mlubin/zeroprod

zeros in products