Fix ClassCastException while checking armor

Fixes the second bug at: http://terrafirmacraft.com/f/topic/5565-not-working-with-other-mods-v07811/