Add chunk name param only if query.name is set