Fixed bug in KaiPurchase.py when quantity is empty.