Fix NRE for empty ProtectionParameters

Fix #31