[kernel] avoid crashing in CommandHandler::split() trimming

Avoid seekeng pointer beyond the boundaries