Correctly give 404 responses

...for things that look like shortened links (alphanumeric) but aren't
found in the DB. This fixes one of two failing tests. (The other one is
just an old sample test I need to change.)