phash: fix checksum

Closes #19462.