Fix some coupon insert hooks + prevent notices
Merge branch 'JeroenSormani-master'