Catch excpt to avoid fatal in Message::__toString

PHP doesn't allow __toString to throw exceptions and will
trigger a fatal error if it does. So, catch any exceptions
and try to report them using wfWarn.

Change-Id: I52d38e9a927da4db18f4733fd207f9396adedf94
Merge "Catch excpt to avoid fatal in Message::__toString"