[backport] fix null oldvalue in update events within transaction. fixes #3406