[PATCH v2] part: Add check for NULL dev_part_str