partitions: Fix when disk does not have extended partition

Disk may just have primary partitions,
this makes getExtendedPartition return none and
throw exception when refer to extended partition path.
Fix this by check whether extended partition exists.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>