Before this commit, `get_base_url()` could not be called on an empty recordset. It might be called on an empty recordset for instance when getting the paypal payment endpoint URLs. This commit allows that and returns the ICP value in that case. The goal is to always use the util method `get_base_url()` instead of directly accessing the ICP. closes odoo/odoo#68201 Related: odoo/enterprise#17538 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>