Make managed-compile-zo fail if the file doesn't exist.

Closes PR 14830.

This didn't break anything that I could tell, but again there are no tests as far as I can tell. Also is there a better way to get a nonexistent path in a test?