'check-available-stock' fixe issue #533

if 'check-available-stock' is set to 0
the quantity returned is 9999