v.25.3Bug Fix (user-visible misbehavior in an official stable release)

Regularly check if merges and mutations were

Regularly check if merges and mutations were cancelled even in case when the operation doesn't produce any blocks to write. #77766 (János Benjamin Antal).