Adding missing groups field when cloning, causing toString() method to never print group by. Extending null check to Undefined nor empty when compileSelect