nunaliit2-js: Fix issue where map event "clickout" is not always
generated. This takes care of inconsistencies when clicking background
layer.