Issue #355: Check if the userid is populated for couchdb credentials

While the userid attribute may be present in the conninfo object, it isn't always populated. This checks for whether it is populated or not.