Bug #2209: Get ID from first column of datatable if not present in second
(cherry picked from commit 804f7a84e45c3b058fe28843fae45680565654f7)