Pcbnew, Gerbview : fix crash when updating the layer manager.