Bug: Plugin used to break on empty strings.

Someone reported an issue about this plugin.
I'm publishing a fix here so others can benefit as well.