fix #934
Merge pull request #935 from mapbox/layers-noempty

fix #934