Fixes yet another bug with default materials

This bug was related to default materials being set when on the default
layer and assigned material-by-layer.