Fix null-check for SPN rule

Change-Id: I882512609be2427fa4edd32303357488fc22ae67