Fix undefined sanitizer warning about qsort

Said the first parameter is defined by spec to not be null and we where
passing null when there's no blocks, so add an if
1 file changed