Bug 880140 - Avoid crash on Mac. r=bdahl, a=bajaj