Update src-mysql.r

If 'values' is a grouped_df, we are prone to index out of bounds error on `values[is_factor]` where sum(is_factor) == 0.