Fix EZP-22509: HTML pasted into literal ends up outside literal tag when the
source is not plaintext