[mkgmap-dev] Commit r3992: add check to avoid NPE