[GEOS-6627]GWC causes a wrong handling of the ImageIO and ImageIO-Ext plugins