Log disccusion ajax failures in Sentry

We have been getting a few reports of comments not always loading. This is a first step to instrument/diagnose the issue, by triggering an event in Sentry for every failed ajax load. This should give us an indication of how many user and which user agents this is happening on.