Dump stack traces to syslog when rendering fails.

Change-Id: I970194e094b61664f979fb89aaebe3d1bb311c8d