Compile fixes
Wasn't dealing with empty tile layers for local data sets.