fixed notices in entityreference_prepopulate #2368137