Fixed bug with calling Lucene update from internal API