Fix NullPointerException when adding a null list.

Fix NullPointerException in addAll(List) when List is null.