Catch type mismatch in list.contains() comparison.