if you use a demo store in the console simply run this
window.stencilUtils.api.productAttributes.optionChange(77, "action=add&product_id=77&attribute%5B108%5D=69&attribute%5B109%5D=10&qty%5B%5D=1", function (err, resp) {
console.log('err', err);
console.log('resp', resp);
});
and you'll have the error can't convert null to object