Added a nil check on published in the citation generator