Ensure that a valid document line index is used.

If no CodeDom header is present then a value of 0 will be used which is invalid.  This occurs in F# where the CodeDom generator can return clean code with no headers present.