led: triggers: Fix dereferencing of null pointer