Fixes #5724: don't duplicate text blocks when inserting - refs #4650