kbdlogger: Fixed Null Pointer dereference bug

Fixed bug at module loading/nloading