Fixed possible page number issue updating ToC in non-PDF conversions.
Merge pull request #2 from danielfernandez/3.0-NX

Fixed possible page number issue updating ToC in non-PDF conversions.