Fix hiding poll publisher for close action

ref: #5029