fix for error being thrown when no order is present when calling apply_gift_card