Unexisting id for entity_type throws an infinite loop.
It's needed to check if this exception is related with 404 page when /{entity_type}/{id} is set for existing id instead of redirect to related alias. Otherwise, other exceptions should be checked.