minor update to highlight to gracefully handle null text input

When using this with dynamic data from ajax, I ran into issues when some data was null. This resolves this issue for me.