[PATCH 5.15 863/913] proc: bootconfig: Add null pointer check