Fix error when publication has unpublished references.