Revert "Editor forgets datatype settings after save"

Christ, I keep doing things in the wrong places. I initially commented on your commit instead of here, sorry:

You should delete this PR, Dejan. It prevents saving data on new maps (with no previous db value, as far as I can see).

I wish I had time to fix it properly, but for now I'll have to live with losing datatype settings on save :-( I will look into it as soon as I have the time! Sorry for the inconvenience and poor testing.