deal with empty output from toplevel commands

closes ocamllabs/rwo-comments#2160