Fix NPE for null tiles and exception handling
Merge pull request #248 from occamlabs/3.4-fix-npe-caching-tilestore

Caching TileStore: Fix NPE for NULL tiles and improve exception handling