Fix html attachment on deleted unpublished publications

Fixes https://www.pivotaltracker.com/story/show/62469036