XWIKI-9031: Javascript error when changing the logo of a color theme on IE8

Fixed by using Prototype's strip() function instead of trim(), which is not supported by IE<=8.(cherry picked from commit 4f260dc3ce4339ef7f2357334a981b7a43b64e12)