fixed return value from product registration call (bnc#875412)

- 3.1.40

Note: I have added `options.base_registered = true` assignment and the end of  the block and overlooked that the it changes the result of the block...