Handle kernel_pid_t consistently

This was missing after #1374 got merged - otherwise, e.g., 6LoWPAN is not working.

KERNEL_PID_NULL is a negative number. If kernel_pid_t variables are
initialized to this value, one have to check for lt/gte 0.
There's just these two cases where it gets assigned immediately afterwards. Why not just move the declaration down?