Fix diagnostics for missing symbolic names

Signed-off-by: Michael Buesch <m@bues.ch>