Fixed potential infinite loop in products model getItemid()