I have created a simple app to add and delete a layer with csvlayer. The addlayer is working fine for the first time. But when I delete the layer and trying to add it again, it is not working. It is giving the error "Cannot read property 'featureSet' of null". Can anybody help me on this issue?