fix PR #19 (commit ce02bb8) for bug 986221

fix [bug 986221](https://bugzilla.mozilla.org/show_bug.cgi?id=986221)
duplicated from [zamboni #1884](https://github.com/mozilla/zamboni/pull/1884)