Ignore exceptions from template compilation on background threads. Fixes #546
Merge pull request #557 from dsimunic/fix-546

Ignore exceptions from template compilation on background threads