fix npe with getting publicationId in actionendpoint