Catch viewhelper exceptions and log them in production context
Exceptions are currently not catched at the correct place.
Instead of logging them they are partially silenty ignored and you will not find a reason why an image tag is broken like in the ImageViewHelper.
There is already some code that should log thrown exceptions and ignore them in production context but that code does not work as instead of catching
Exception is catched which does not exist at all in that namespace.