HTML: Angular exception handling. Fixed #1547