Only log error if database selectable

If you can log in to the DB server (db->conn is a valid resource), but not select the Clipper database named in config.inc.php (so db->dbase is not set), there's no point trying to log errors in an unavailable database - you just get a lot of failure messages with an ever-increasing backslash frenzy.