Ensure body.rows is an array before passing to nub.