shell: Only show the "Extended Partition" choice when it makes sense.

Fixes #1305