[HOTFIX] Fix #823

Using layer source instead of layer name - a more resilient way. Layer name may change after calling  QgsMapLayerRegistry.instance().addMapLayers().