Detect invalid section indexes when we first read them.