kernel: check for struct task being non-null
kernel: check for struct task being non-null

Signed-off-by: Mahavir Jain <934132006b6c9b08831ff9ee396b986615350165@gmail.com>

mahavirj/tinyos,mahavirj/tinyos