Fix potential NPE with PPs and alarms