Fix JS error in tmpl-editor-gallery, `'string'.trim()` is not available in IE < 9. See #28089

git-svn-id: https://develop.svn.wordpress.org/trunk@28683 602fd350-edb4-49c9-b593-d223f7449a82