Catch locale import exception
Don't rely on HTTP referer header