Adds assertion error messages for HDWallet

This pull request adds better error handling messages for the assertions made in `HDWallet`.