Steps to Reproduce:
Create a template and a form named "Hello World". Go to Special:CargoTables.
No edit link shows.
It seems PFHooks::getFormForTemplate() is passed a template name with spaces, but looks at an array where the name is encoded with underscores. The simplest solution is to add the line:
$templateName = str_replace( ' ', '_', $templateName );
As the first line in PFHooks::getFormForTemplate().
I'd send a patch for review, but my gerrit knowledge is extremely rusty right now. If I figure it out in the next hour, I'll send one.