Return 404 on invalid paste id

Preferable to dereferencing a null entry.