changed hibernate event interceptor so that it removed empty threads instead of setting them to null