[GEOS-6686] MBTiles and GeoPkg are not correctly shown in LayerPreview (Backport on 2.6.x)

This pull request contains the backport on 2.6.x of the fix for JIRA: https://jira.codehaus.org/browse/GEOS-6686.