Bug 871312 - Fix rooting hazards in nsEmbedFunctions.cpp; r=till