added some additional checks if the filter field is set but was not published in the message