Avoid monitor error on hosts with "Unknown ID" VMs
(cherry picked from commit e5f8b745fd10596284ac394fe679b8b12714ac04)