Change of batch() behavior with an empty list

Refactor resolver._done() for better coverage by Istanbul