Handle zero quantity gracefully in restocks

Fixes #87.