exec: fix crash when giving bad id to command /exec -in