#171, ArrayIndexOutOfBoundsException when producing WMTS capabilities with layers that do cache gridsets starting from a zoom level > 0