Validate size widget when activating/deactivating apply button

In the Media Dialog, make sure the size widget is valid before
applying or disabling the apply/save buttons.

Bug: 70861
Change-Id: I6ec9eb69fe6576f1c668270b12157de9910f0214
Merge "Validate size widget when activating/deactivating apply button"