Bug 1065516 - [System] Invalid references to  objects

https://bugzilla.mozilla.org/show_bug.cgi?id=1065516