TUI: Fixed some more potential null pointer dereferences in the kernel module.
TUI: Fixed some more potential null pointer dereferences in the kernel module.

jmolloy/pedigree,jmolloy/pedigree,jmolloy/pedigree,jmolloy/pedigree,jmolloy/pedigree,jmolloy/pedigree,jmolloy/pedigree