Add sanity check to Quicksort, getMultipleItems is allowed to return null or fewer items than requested.