Fix `ActiveRecord::RecordNotFound` error message with custom primary key