Error check pointer set by get_section().

Program segfaults if an elf does not have a symtab section.
Error checks added for pointers set by get_section().