Bug 995607 - Fix an AutoDebugModeInvalidation issue. r=shu