Bug 874900 - Add a null-check in BrowserElementChild's observe() function. r=ehsan, a=jlebar

This fixes benign JS exceptions thrown here.