Fix regression in leveldb backend
Don't unload blocks if save failed

Improve error handling in saveBlock()
Merge commit '8b3ed78'

Conflicts:
	src/database-leveldb.cpp
	src/database.h
	src/map.cpp
	src/map.h