Exception handling for missing id

Refs #8259. We don't like tracebacks. Includes unit test.