[MIPS] N32: Make sure pointer is good before passing it to sys_waitid().