fixed crash when invoking sort on an empty sheet's entire column, fdo#72874

Change-Id: Ifc4a08069a42ca18a056c509575a4080094aa07e