Show confirmation when about to discard edit changes.

Also deny preview when there's no modification.

Bug: 66195
Change-Id: Id3e20cb45bc5a862a9afce08b3d4716edd2e958d