Handle the case that getMapData returns null
Handle the case that getMapData returns null

Bug: T220308
Change-Id: I9a931621dc87174471d0208191278c618206956a

wikimedia/mediawiki-extensions-Kartographer,wikimedia/mediawiki-extensions-Kartographer,wikimedia/mediawiki-extensions-Kartographer