If the tenant is violating his lease by having an illegal subtenant, the landlord should be able to evict the tenant. If the landlord is forgiving the tenant's illegal sublet and the conduct of the subtenant, then the issue is moot - the landlord is choosing not to evict him.