[PATCH 6.7 102/309] Revert "kobject: Remove redundant checks for whether ktype is NULL"