fix segmentation fault in get method

leveldb_open can result in 3 cases:

* success (non-null result, null error)
* failure, due to a missing key (non-null result, null error)
* error (null result, non-null error)

The second case (missing key) was not handled.