I found this old forum topic: Roundcube filter to keep spam in inbox, and although it doesn’t offer a resolution, maybe it will give you some ideas about what’s going on.
It’s very possible that this is some odd interaction going on between spamassassin and the sieve filter.