Fixed a bug in the wrapper factory methods in MozillaDocument.cpp. The bug
could cause seg. faults if a "null" mozilla object was being wrapped.
Note: These files are not part of the regular Mozilla build.
git-svn-id: svn://10.0.0.236/trunk@60884 18797224-902f-48f8-a5cc-f745e15eee43