Re: #1461 - fixed minor issue in language detection code