os/LevelDBStore: only remove logger if non-null

Signed-off-by: Sage Weil <sage@inktank.com>