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

Change-Id: Ifc4a08069a42ca18a056c509575a4080094aa07e
(cherry picked from commit efb0412eda9eb33e45b27d9d7d6cc94e4211a82c)