Account for empty (but still present) layers
Merge pull request #3 from cmc333333/master

Account for empty (but still present) layers