return null if exception happends durring lang detection