[FIX] website_blog: handle None window selection
[FIX] website_blog: handle None window selection

In the code for commenting or posting to twitter a selected range of
text, we did not take into account the case of no selection (eg. we
click on an element, but another code prevent default browser action).

opw-2197227

closes odoo/odoo#45883

X-original-commit: c578279dba4a3fd95e261d8dc58f2704c3b50eb0
Signed-off-by: Nicolas Lempereur (nle) <2907e499a003d1c3ab7944c0a40c6df46e3e3c2f@odoo.com>
Co-authored-by: Nicolas Lempereur <2907e499a003d1c3ab7944c0a40c6df46e3e3c2f@odoo.com>

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