Issue #2715469 by RenatoG, davidwbarratt: Warning: Invalid argument supplied for foreach() in node_reference_field_prepare_view()