Currently only the root component has 404 page (or any other http exception page). IMO the exceptions handled in index.php should look for the component's router first where the request went.