Fix #1146 by keeping result of outline view delegate method within range of array.
Merge pull request #1181 from rkachowski/bugfix/1146

Fix #1146 by keeping result of outline view delegate method within range...