Catch NoClassDefFoundErrors to fix crash when clicking with items with different rarity