Fix error with 'Add existing record' using record_select (backport)

Backport of #229 for the 3.2.x versions.

Please update the gem.