Missed NULL pointer checks for MF7_CAUSEPAIN additions