Fix EZP-21293: REST 404 errors should be valid