fix null pointer during cmd submit with a big TODO list

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
yaor

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>