Fix NRE on sending multipart texts.

Watch for deliveryIntents, parts, and sentIntents being null.

This is based on http://review.cyanogenmod.org/#/c/46009/

Change-Id: I4abe2a2bd3e45bafde32de3a0c81576d742e4cee

Patchset: 1
http://review.cyanogenmod.org/#/c/55424/
(cherry picked from commit f00395f1d77a0035c450bed7ba44a542a3e1097d)