Exception handling for missing id

Refs #8259. We don't like tracebacks. Includes unit test.
Merge pull request #8329 from cachedout/#8259

Exception handling for missing id