Test for existence of history before merging in map.js.