Always catch exception by reference. Removes compiler warning.

Merged Timo Koch requested to merge bugfix/catch-exception-by-reference into master

Merge request reports