Fix warning when accessing coupons created in pre-2.1 installs