customLocale plugin error

Hell all, @asmecher, @jhennig,

I just happen to enable that plugin at site-wide level and OJS crashed.
I don’t know how to fix this… I hope that’s the problem, as an error is displayed when I try to run php tools/upgrade.php check to get some sort of error message…

PHP Fatal error:  Uncaught Error: Call to a member function getId() on null in /var/www/revista.ibict.br/plugins/generic/customLocale/CustomLocalePlugin.inc.php:32
Stack trace:
#0 /var/www/revista.ibict.br/lib/pkp/classes/plugins/PluginRegistry.inc.php(69): CustomLocalePlugin->register()
#1 /var/www/revista.ibict.br/lib/pkp/classes/plugins/PluginRegistry.inc.php(144): PluginRegistry::register()
#2 /var/www/revista.ibict.br/lib/pkp/classes/cliTool/CliTool.inc.php(65): PluginRegistry::loadCategory()
#3 /var/www/revista.ibict.br/lib/pkp/classes/cliTool/UpgradeTool.inc.php(35): CommandLineTool->__construct()
#4 /var/www/revista.ibict.br/tools/upgrade.php(21): UpgradeTool->__construct()
#5 {main}
  thrown in /var/www/revista.ibict.br/plugins/generic/customLocale/CustomLocalePlugin.inc.php on line 32