Fix potential NPE in TLD processing