Fix generate_signature_hash error and handle in check_signature.

The above was private and therefore inaccessible to callers, however it was also the failure sentinel for `generate_signature_hash()`. Instead of making it public and thereby redundant with `null_hash` it has been removed and replaced with `null_hash`.