Bug 1035833 - Fix layersId allocation in nested content process. r=mattwoodrow