Handle empty arrays in Utils#flatten_params