If you add in Colin's suggestion - and rather than drop messages completely, replace them with nulls if some condition occurs - then you can easily re-filter after re-joining them. eg as below - which is one way to work around the split-filter-collect-WITH-dropped-messages use-case
[{"id":"c295fef495b72c5e","type":"function","z":"8f7d7811a9253b8f","name":"finally filter out null returns","func":"msg.payload = msg.payload.filter((val) => val !== null);\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":600,"wires":[["12347b7057460c89"]]},{"id":"d934cee75db61d51","type":"join","z":"8f7d7811a9253b8f","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":562.5,"y":525,"wires":[["c295fef495b72c5e"]]},{"id":"12347b7057460c89","type":"debug","z":"8f7d7811a9253b8f","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":615,"y":600,"wires":[]},{"id":"bc5f86db20063fba","type":"function","z":"8f7d7811a9253b8f","name":"drop even numbers","func":"if (msg.payload % 2 === 0) { msg.payload = null }\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":525,"wires":[["d934cee75db61d51"]]},{"id":"a32fc602b0ecc67e","type":"delay","z":"8f7d7811a9253b8f","name":"","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":335,"y":462.5,"wires":[["4d3b2998800ee242","bc5f86db20063fba"]]},{"id":"0984ac1bb6342f05","type":"switch","z":"8f7d7811a9253b8f","name":"swicth > 4","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"4","vt":"num"},{"t":"gt","v":"4","vt":"num"}],"checkall":"true","repair":true,"outputs":2,"x":162,"y":445.5,"wires":[["502f5bf797b3c220"],["a32fc602b0ecc67e"]]},{"id":"4d3b2998800ee242","type":"debug","z":"8f7d7811a9253b8f","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":510,"y":462.5,"wires":[]},{"id":"94461abdba5c5882","type":"split","z":"8f7d7811a9253b8f","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":354.5,"y":333,"wires":[["0984ac1bb6342f05"]]},{"id":"502f5bf797b3c220","type":"delay","z":"8f7d7811a9253b8f","name":"","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":335,"y":412.5,"wires":[["5af83a479eae5acb"]]},{"id":"034e58bbf2a5d185","type":"inject","z":"8f7d7811a9253b8f","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[0,1,2,3,4,5,6,7,8,9]","payloadType":"json","x":169.5,"y":333,"wires":[["94461abdba5c5882"]]},{"id":"5af83a479eae5acb","type":"join","z":"8f7d7811a9253b8f","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":500,"y":412.5,"wires":[["30a8fab04feeaa50"]]},{"id":"30a8fab04feeaa50","type":"debug","z":"8f7d7811a9253b8f","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":412.5,"wires":[]}]