rightclick and backspace now exits polylinemodule, when polyline has zero length