When a Pullpreview environment tries to synchronize but gets unlabeled right after, empty connection information will be commented.
This is because when the workflow started, the label was set, the pullpreview job itself takes a look at it's start again, but the following job does not.
Check if the username and ip address is set as variable and only then comment. Maybe try to print an error or something like that.