return null in sliceReverse if no lines returned for query -- prevents failure on lines.length line 190