Mms: fix possible NPE

Change-Id: I604a0ed9acd55f4dad9b55a2a20805005b4d72e6