Check if mmp's encoded subject is null before used

From AOSP:
  https://android-review.googlesource.com/#/c/57709/1

Change-Id: I1de3c83b2b68128f725f8bbaf3d6764b2bdf836b
Signed-off-by: Roger Chen <cxr514033970@gmail.com>