Fixed a bug which caused an empty, undefined attribute to be added to
the end of the Instances object when useDocTitles is set to true