fix grouper for resultless mysql queries