api: fix response for unknown id
Merge pull request #501 from teharrison/develop

api: fix response for unknown id