fixed, deserialization of document value on case of no database in the thread scope. issue #3153