NIO-66 Safeguard against empty string group by