Return 404 instead of 500 on invalid item key