Update Entityreference-Prepopulate to prevent ajax errors

#1480

Patch on d.o -- http://drupal.org/node/1502972#comment-6989144