Make sure plugin module is loaded before using is_plugin_active()