Bug 916229 - proposing a patch to fix the bug.