Fixed problem where unbpublishing only worked if there were no active drafts.