Casual investigation suggests that this is because get_commit_parents runs git log and is not expecting to see the signature in the output.
Unfortunately there doesn't seem to be an inverse of --show-signature and specifying --pretty doesn't seem to prevent the sig showing up in the output of git log. Perhaps imerge could disable this option in local config for the duration of the imerge? or use a more sophisticated way to query parents?