layersconfig loaded with lang=undefined

"Sometimes" layersconfig is loaded with lang=undefined.