[mkgmap-dev] Commit r3681: add check for possible null pointer exception (NPE)