Allow the default key to be unavailable

This solves the issue where no default key can be added after -salvagewallet.

Conflicts:
	src/main.cpp
	src/wallet.cpp
prepare for changing block hash