Automatically fix empty section references to contain the name and

position of the section.