Removed the requirement to check if it was active before activating.  If a plugin is newly installed it won't show up in the list of plugins, so the subsequent call to is_extension_active will fail and the plugin won't be activated.