OSV: better catching of bogus pool.get(<garbage>)
OSV: better catching of bogus pool.get(<garbage>)

First, if get is not a string, we are in deep trouble. Second, if not
found, log a warning before things go wrong.

xrg/openerp-server,xrg/openerp-server