Checking stock levels on cart update, fixes issue #1190

Fixes #1190.