Why would you want to time nothing? What does it output, real 0s user 0s system 0s?
time ${cmd}; foo
where cmd happens to be unset. Conceptually, that's a valid script, because `time` standalone is a valid script. No reason it should generate an error.$ time
real 0m0.002s user 0m0.000s sys 0m0.000s