[PATCH 5.10 572/599] proc: bootconfig: Add null pointer check