svg: fix AttrMap.set() events firing conditions