[U-Boot] [PATCH] UBI: Set ubi_dev.type back to DEV_TYPE_NONE upon failing initialization