GROOVY-5898: fix for empty quotes

This is a fix for a previous pull request 212 to correct a bug that caused it not to handle empty quotes.  Sorry about that @paulk-asert.