fixed NPE when wallet and backups fail
improvements to calculating best backup candidates