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

This fixes benign JS exceptions thrown here.