Fixed crash on Windows 8 when trying to add translation to project

Windows 8 offers locales, that do not have a valid lcid. Trying to
create translation items using these will cause an exception to be
thrown.

Change-Id: I7969531b6aaaf29478e6ad1935b8481a157a3bee
Reviewed-by: Ismo Haataja <ismo.haataja@digia.com>