mapchart: add a couple of checks