dmenu: check for empty instead of ret code