do not allow destruction of unknown target id

Signed-off-by: Jan Dvořák <mordae@anilinux.org>