fetchRow: check that $result is a resource
fetchRow: check that $result is a resource

$result, which is always set to _query(), might sometimes be a
non-resource for certains query types (eg. boolean for insert). By
checking we avoid passing invalid resources to db functions.

alanszlosek/dbFacile,alanszlosek/dbFacile