Fix null pointer dereference when a delete flow command is executed.