Undo 888160f8 because the fix caused the nasty jitters; further investigate required
Fix: bug in TerrainLayer; no NULL check on tileSource when setting the cache policy
Merge branch 'master' into topic-controls