Fix for Npe

getReason can return null. Hence when call equals it may cause a Npe.

Use Objects.equal to avoid the Npe.

Change-Id: If18807bc49a9f5d629ead8382d3b9b54f0978cd8
CRs-Fixed: 556338
Merge remote-tracking branch 'cm/qcril' into qcril
Merge remote-tracking branch 'origin/qcril' into caf