Catches ClassCastException for when there's an invalid tool object type definition.