Bug 945241 - Check for null pointer in TypedObject trace r=sfink