Thanks for the bug report. I've committed the attached patch.