Fix errors on project_issue migration

Fixed errors resulting in exceptions when trying to upgrade my database.

Notably, I can't find the `openupgrade.map_values()`  function anywhere in the source code. Maybe it was missing from some commit?