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

Stupid crash had me looking for a while. Turns out it's scanning through the item class methods and server-side it sees the getRarity method but can't check it since it's @SideOnly client.