Handle cart changes invalidating existing discount codes. Closes #168.