Do not use NULL as an array key

(cherry picked from commit c647b639)

Closes #3556884

Merge request reports

Loading