[mkgmap-dev] Commit r4179: fix old possible error in index which only showed up because of the new assertions added in r4167.