Guard against null projections when creating Layers.
Gradient could not handle point Layers.