Bug 976790 - Fix assertion failure, r=mrbkap.