Fix td_ta_map_lwp2thr logging and early sanity check.