Replace builtin function correctly in Thunderbird 17
Support Thunderbird 17