API: raise on __nonzero__ for Index (GH7897)