Fix NPE in DuplicateMessageFilter