Rake users:merge on former admin account throws error

That would produce another error by the rake task:

“ERROR: User with username source does not exist”

To me it looks like the database is corrupt and contains posts with topic ids of non-existent topics.