Hi Max,
A fix for this issue has been included in Totara 12.8, 11.17 and Evergreen, which were released today.
The full release notes are available here: https://totara.community/mod/forum/discuss.php?d=23453
Please don't hesitate to let us know if you have any further problems; this ticket has now been closed.
Thanks.
Totara Product Support