SortUtils: fix possible crash when sorting by season