Prevent adding collections as layers.
Throw an error when trying to add a layer in collection mode.