Fix error exporting linked HTML file

https://forums.zotero.org/discussion/29392/#Item_14