Fixed bug where exceptions thrown by helpers called from templates disappeared