Fix percent per item calculator to work when no rules restricting produc...

...ts.

Same issue as #2610 but with a different calculator.