Correct issue with inclusive_end on view queries.

Change-Id: Icb65a738230f9ed34a01739699481f79c15980f0