Do not add null weakrefs to the weakref list