libopkg: make checksum_bin2hex() and checksum_hex2bin() cope with NULL