Add some protection in the extension resource for unloadable extensions.

The API resource for extensions would fail if the extension couldn't
actually be loaded. This was hit with the Review Board API docs build,
since we referenced non-existant extensions. We're now a bit more
careful and only introspect the extension if it's loadable.