As @authmillenon pointed out the "null" in the old name is somewhat misleading, since the actual value is -1.
Instead of using differing integer types use kernel_pid_t for process identifier. This type is introduced in a new header file to avoid circular dependencies.
Currently this works only in qemu.