Fix EZP-22643: "Missing form token from Request " when creating an object after clearing cache

Should also fix EZP-22589: "Missing form token from Request" when trying to vote a poll from a block poll with a logged user.

Was a regression from combination of:

* https://jira.ez.no/browse/EZP-22414
* https://jira.ez.no/browse/EZP-22531
* https://jira.ez.no/browse/EZP-22210