Fixes bug in the wrapper for waitpid when the status pointer is
NULL.