Before this commit: When we select text and take the selection to the hex input box and then try again to add a solid color, it gives us a traceback. After this commit: Now it did not give traceback. Task-2965091 closes odoo/odoo#116539 X-original-commit: 981713bd024a98f5d9099bfec8458224dac32a32 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>