Added conditions when Theil indices can be computed. If those conditions are violated an exception is thrown.