Fix crash when using HMAC mode with empty input. Hopefully nobody noticed this, because why would you use empty input?