metrics-jetty9: Simple fix for #435, check if class cast is possible

This fix makes the ClassCastException go away, but it probably causes the activeSuspended
counter have wrong values.

Someone who knows how things work need to improve this fix.