Issue 7045: prevents exception when logFormatted is called from javascript code injected from content-scripts

https://code.google.com/p/fbug/issues/detail?id=7045