sendNotification not working inside DSL script in a rule

Ok, I’ve raised it as a bug on Github in openhab-core; here’s the link for anyone looking in the future: