Quite a few users are prone to flagging as spam any/all terrible questions, simply because they're terrible. This is incorrect use of the spam flag and if a moderator catches it the flags will be declined.
Unfortunately if the question gets deleted, including by the post owner, the flag gets dismissed as "helpful" automatically. It turns out too that many users are keen to delete their downvoted content - we even have a "peer pressure" badge to encourage it.
The side effect of all this though is that spam flags are getting incorrectly dismissed as helpful without any moderator seeing them ever. The most we can do on discovering this is dispute the spam flag, which also undeleted the self-deleted post and needs to be manually redeleted by a mod. (This has slightly different semantics too unfortunately)
I propose that self deleted posts with pending spam flags shouldn't cause the spam flag to be cleared either way. I don't think there's a case where self deleting ever should auto dismiss the spam flags as real spammers aren't exactly prone to deleting their handiwork and even if they did for some bizarre reason the mod eyeballs could still be used to burn the whole account.