Merge pull request #5145 from pks-t/pks/hash-algo-uninit-return hash: fix missing error return on production builds