Bug 880441. Fix erroneous assertion with double buffering; r=mattwoodrow