Fix new instance creation

It seems that the /instances/:name routes is also used when a new
instance is created but hasn't yet been confirmed. So check the instance
status before redirecting.