Updated lib/partition: Fixed partinfo lookup error

Even when no partition info was available, .slice() was called on it -
causing a TypeError