hotfix for piping message from stdin

Critical bug fix, as this breaks the apps portal functionality. Not sure how this made it past the last two pull requests, but it did.

To test, flash two nodes, create an advertisement on one node and make sure it shows up on the other.