fixes a possible null reference exception when accessing protectionData ...

...member in ProtectionExtensions class