Fixed #870: Re-throw exception instead of printing stack trace and info in exception templates when display_errors is off