add check for KeyError for Translate plugin