fix problem when using gallery in <yandex:full-text>