Fix bug in expired_posts rake task.