Fixed overflow check for BTreeIndex::deep_insert()