Bug 851163: Log a tbpl message for exceptions from the main test functions. r=ochameau
(cherry picked from commit 3bd702979e4ceb7fcf8142ffcb0ea7e37517ce54)