Bug 738288 - EBookSqlite is leaking memory in ebsql_ref_from_hash function

ebsql_ref_from_hash from EBookSqlite is always returning NULL, even if instance
for given database was found in hash and its reference count was increased,
creating memory leak.