When editing resources causes a validation error other field changes are lost

Steps to reproduce:

1. Edit a resource in a dataset
2. make some changes to name/description/format
3. delete the resource url
4. submit

What you see: All the old values from name/description/format are now entered in the form

What I expected: The form should contain all the modified values, not just the resource url that caused the error.