Fix ActsAsUrl::add_new_record_url_owner_conditions failing with an sql error

This happens in case table does not have an "id" column - the patch changes hard-coded "id" to an instance.class.primary_key method call.