Fix Post.cleanup() breaking EXIF toggling

This tiny patch fixes the behaviour of the EXIF toggle link, which was broken by the Post.cleanup method as it removes all id attributes from the post element tree.

Fixes #1584.