Fixing a PHP warning with profileswitches local plugin.