Fix of "https://github.com/igor-tkachev/bltoolkit/issues/310".