Prevent verify-config from IndexError

verify-config raises IndexError when tempest.conf
contains an empty api_extensions list.
The patch fixes that and adds a few unit tests to
that.

Change-Id: Ia9abea77e3baeb9418cb1869cec2a159cdc9fd48
Related-Bug: #1786915
2 files changed