Crash fix with <object> in DOM

When <object> elements in the DOM are bound to browser plugins, the properties of this DOM element are defined by the plugin and thus the attribute childNode may not exist.

Without this fix, angular crashes when it encounters an element without the childNodes property.