fix boundary edge case in activity WAL that could result in endless rebuild loop