fix onElemSetMod bug (issue 340)

https://github.com/bem/bem-core/issues/340