libfdisk: (dos) make EBR parser more robust

Signed-off-by: Karel Zak <kzak@redhat.com>