nunaliit2-js: Fix issue where two geometries are added to the edit
layer.

Issue #156