Fixed segfault when using no tiles for a depth layer.