stopped endless loop when saving variable product that manages stock

@mikejolley