WikiLeaks' Assange was careful to protect informants, court hears