cmdutils: fix null pointer dereference