Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap