[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
[MERGE] Forward-port saas-3 up to b6acdc4