Fix EZP-23255: Show correct error on createObject

the `%detail` parameter was never replaced because of a typo in the function call

https://jira.ez.no/browse/EZP-23255