Hi!
Seen this error before. I think it was a small oversight. Overall, itlooks correct to me. Consider this patch useful, make it RfC.
-- Best regards,Maxim Orlov.