Follow-up issue created: https://jira.ez.no/browse/EZP-22846 and linked in https://github.com/ezsystems/ezpublish-kernel/commit/08f04a3d2324bafd233a80fb0c66f3abb27e4c42.