When DT is empty, DT[, newcol:=max(b), by=a] now properly adds the column. Closes #5376.