fix bug in Product#save_master (see #3746)

port fix from 1-3-stable #3746