Bug 916813 - Fix a crash during a layer dump. r=nical