SLING-3459, do not log exceptions which are rethrown

Do not log exceptions which are rethrown, to prevent stacktraces from appearing twice in the log. The original bug report is at https://issues.apache.org/jira/browse/SLING-3459.