Fix GPG key presence check when specified as $content