Bug 964318 - Discard unwanted messages from the consoleObserver. r=ahal

(cherry picked from commit 80d34c988cb47ea41794396e68df8258e0a350c6)