web_project_ui: fix unused-variable pylint errors

Pylint warnings are now causing test failures.

/reviewed-on !987
2 jobs for cmf_upgrade_versions
Status Job ID Name Coverage
  External
passed ERP5.UnitTest-Master

02:01:20

passed ERP5.UnitTest-Master