[FIX] web_editor: properly save media dialog without any image
[FIX] web_editor: properly save media dialog without any image

When saving the media dialog without any selected image, a crash
occurred. Now, it properly closes the dialog.

opw-1858614

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo