fixes wikipathways/pathvisiojs#170; handles various null|undefined cases with publication refs