This fixes following issue:
(lldb) target select 0
error: index 0 is out of range, valid target indexes are 0 - 4294967295
(lldb) target select 1
error: index 1 is out of range, valid target indexes are 0 - 4294967295
Due to unsigned arithmetic operation, we can see above output which is both misleading and against pure logic.
The question why there are no targets listed remains open.