Rethink. The error message needs to be shown on layer change,  not just on the first findLayerAsJson request