Return 404 instead of 500 on nonexistent namespace ids.