Web page wizard generates an unexpected error while attempting to preview a web page

I’m running LibreOffice 5.2.2.2 on Ubuntu Yakkity (16.10) and I’m having trouble with the web page wizard. I got through all the steps okay except for the very last one where I try to preview the page and get an “an unexpected error occurred” box.

Furthermore, I also get the same error when I click the Finish button. I have read/write access to the destination directory.

Thank you in advance for your help.

I also have the latest and greatest version of Java installed.