Fix EZP-21293: REST 404 errors should be valid

http://jira.ez.no/browse/EZP-21293

A simple pull request that fixes a major minor annoyance.

Makes 404 errors for mistyped rest resources valid REST responses (but still 404 of course).

## testing

Manual + Functional test