Summary
	* Issue title: ArrayIndexOutOfBoundsException when perform JCR query
	* Product Jira Issue: JCR-2015.
	* Complexity: Medium

Proposal
 
Problem description

What is the problem to fix?
	* ArrayIndexOutOfBoundsException when perform JCR query

Fix description

Problem analysis
	* For unintended reasons, document can't be found in Lucene index which causes ArrayIndexOutOfBoundsException

How is the problem fixed?
	* If  any document isn't found in lucene index (resulted -1 as document nubmer) then catch such usecase to avoid ArrayIndexOutOfBoundsException

Tests to perform

Reproduction test
	* In eXo's QA and RH server test

Tests performed at DevLevel
	* Functional testing

Tests performed at Support Level
	*

Tests performed at QA
	*

Changes in Test Referential

Changes in SNIFF/FUNC/REG tests
	*

Changes in Selenium scripts 
	*

Documentation changes

Documentation (User/Admin/Dev/Ref) changes:
	* No

Configuration changes

Configuration changes:
	* No

Will previous configuration continue to work?
	* Yes

Risks and impacts

Can this bug fix have any side effects on current client projects?
	* Any change in API (name, signature, annotation of a class/method)?: No
	* Data (template, node type) upgrade: No

Is there a performance risk/cost?
	*  No
