I have tried few times to reproduce your issue on my hosting, but it is always working without any problems.
I have also made an analyse of the app source code, but I do not see a reason of the issue.
BTW – are you using the latest version of Publii (0.35.2)?
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!