Fix NPE if list in from element contains a null object