Re-write the snapping settings when removing a layer

When removing a layer from the project, the project file would still include a reference to the layer in the `LayerSnappingList`. Rewriting the snapping settings when removing layers fixes this.

Funded by Sourcepole QGIS Enterprise.