Fix an issue with instance and park vm only if they are defined.