fix issue with MnemonicCode

When checking if an empty seed or entropy value is valid, MnemonicCode does not throw the appropriate exception.