Updated entityreference prepopulate patch.