Prevent requests for "negative" wmts tiles

Prevent requests for tiles with negative row/col indices or those that exceed matrixWidth or matrixHeight.