This reverts commit 3b8459d7. Return NULL and report errors in the log if a HMAC key or message is NULL, rather than tripping assertions.