Fix illegal memory access when bfd_get_section_contents is called with a NULL section pointer.

  PR 31843
2 files changed