Fix bug when the array of SortFields contains a null SortField on it