core: Report the proper invalid state when waiting for the guest machine to be ready