Don't call updateLayers if the new state has no layer config

Fixes #719