Use sessionid of investigation when publishing. Refs #9112.