fix for infinite loop on bad changeset
Merge pull request #2089 from dmitryuv/changesetslib-fixes

fix for infinite loop on bad changeset