Fixes a bug where if you update the source with empty text, it would still continue to use the previous text value.