[PATCH 5.16 0960/1017] proc: bootconfig: Add null pointer check