MCParser: add an assertion

Add an assertion that the section is not NULL.  Potential NULL pointer
dereference identified by clang static analyzer.