Fix NPE when listeners have varying list sizes.