[PATCH] kunit: tool: add null pointer check