Fix for Issue #1442. NPE in compactRender for List with null values

check elem.values in an Option to prevent NPE