Don't delete posts with a revision

If a revision is present, that means we're editing the post. Deleting it
would just cause faults and crashes.

Fixes #2951