[FIX] minor fix to improve resolving entity IDs
(applicaition/host/severity)

Explicitly differentiates between ID initialization and when the entity
doesn't exist.