pkg-info might contain a #f checksum, causing substring to raise a contract error. This commit avoids the error.
This reverts commit d1e81308d6.
d1e81308d6