Fix #714: Exception templates incorrectly fix information about exception origin