Fixed bug where empty txt msgs get uploaded