Fixed a bug where compiler were generating unnecessary empty string writes