prevents exception when logFormatted is called from javascript code injected from content-scripts
Merge pull request #109 from rpl/fix/sourceLink-exception

prevents exception when logFormatted is called by javascript code injected from content-scripts