[FIX] product_visible_discount: no crash when no pricelist passed or product without company

Fixes an error introduced in f6fb2b6
[MERGE] Forward-port 7.0 up to 2493395