Add errors table entry for bad references
Add test for ValueError in response to invalid ref (issue 294)
Merge pull request #314 from andrewcollette/issue_294

Issue 294 (ValueError in response to invalid reference)