(minor) improve destruction of PersistentDomWidget valueviews

Calling destruction during non-edit mode will no longer fail.

Change-Id: I55b89fb9f0baf83014ace7348e4dbcb568389a5a
Merge "(minor) improve destruction of PersistentDomWidget valueviews"