fixed inconsistent behaviour between HSSF and XSSF when creating consecutive names, see Bugzilla 49907