Do not attempt to translate attributes of hidden widgets

There is no way of accessing them in a meaningful way, and the
translation will be updated as the widget gets shown again.

Fixes #2117 Changing language with opened production tab crashes.