Fix bug with moving saved lines back to basket

The old logic assumed that a basket's lines didn't contain duplicate
products. This isn't true when you have options.

Fixes #1496