TranslatorRegistry Cake 3

Follow document Cake\I18n\TranslatorRegistry at method get()

The return value is object (Aura\Intl\TranslatorInterface)
In my local it working as well, but in staging some time it working well and some time it got error:

> Call to undefined method Cake\Routing\RouteCollection::GetPackage() (/var/www/vhosts/project/vendor/cakephp/cakephp/src/I18n/TranslatorRegistry.php:148)

I don’t understand what is the cause to problem.
Hope someone can help me this. Thanks