Wrong code shown when exceptions are thrown in the first 8 lines

If a exception its thrown on the first 8 lines, the code shown its from the end of the source file (because array_slice starts at the end when its provided with negative numbers).