Fix error with 'Add existing record' using record_select

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