Threader.pruneEmptyContainers fails with NPE if Thread.thread is invoked with an empty list
The code allows for a null list, but not an empty list.