[LDR] Don't dereference a possible nullptr