physmap[map_slot + 1] is the end of the map, not the size

Fix the usage to move to the next map when appropriate