Resolves: tdf#153924 handle non-numeric and error values in rank array