Fix exception when product brand is nil

Fixes #2927