Retrive the locale in Opera only if it was provided.

Thanks @vmihailenco for reproting the bug. Fixes #3.