Prevent the sending of purely-whitespace messages

Brickimedia/brickimedia#214

Change-Id: Ib3992b26a1341e5c6fc19c4a08b80d7652bb1964