Give useful information to the KPIs when reporting a custom error.

* If reporting a custom error type, use the action.title field as the reported error.

fixes #3584