Fix PHP Notice in Translator class