Fixed error in ncx when table of contetnts is empty