Add validation for JmsAppender.
Fix yet another generics compilation error.