DAR-86: fix hanging hyphen when there is no label.

Fixes cases where events would be tracked like: 'editor-mini-ck/photo-tool-/' (now it will track correctly as 'editor-mini-ck/photo-tool/').