Bug 895369. Add some asserts to ThebesLayerBuffer. r=mattwoodrow