only reset new data when callback will be called
Merge pull request #4 from mgartner/dont-reset-until-line-is-parsed

only reset new data when callback will be called