Just for your general information.
In the addBookmark function (line 1084 of CreateDocx.inc) the code checks whether the type and name are empty. Problem is that if the name value is "0" (a string zero) the check incorrectly returns a true on the empty(name) check.
This is an edge case for sure but it did happen for me.
Andrew