Add boolean flag to specify if an exception will be thrown when no item matches the query. For backward compatibility the value is set to true by default