WebSearch: fix get_fieldvalues() when recid is str
- recid might be string, so try to convert it to int in the get_fieldvalues function (needed for WebSubmit, major user of this function, which calls it in many different places with a string argument instead of int).
- Add test case to be sure that we do not remove this conversion in the future.