Patched entityreference prepopulate to fix field instance default value function being overwritten.