CORE: Fix possible crash in bazaar item purchase.