fix for infinite loop on bad changeset

In case pad state is broken, or bad changeset somehow was submitted to the store, this check is required to avoid infinite loop in the consuming code.