Thank you @Daniel Korte for the patch.
I've committed the patch.