Fix for introduced errors if dct_imagehash returns non-zero yet errno is zero