[PATCH v2 12/28] cppcheck: Work around false positive NULL pointer dereference error