Bug 855276: Add assertions to catch the cause. r=bent