Null check before passing data to ksort

Closes #3551273

Merge request reports

Loading