added a nil check when reading the long product name (bnc#875796)

- 3.1.41