Fix crashes on changing shapeFile in databloc and starting shape editor.