Fix: Adds clamping to getSource beforeCount (fixes #1427)

- Without the clamping in place, there is the possibility of passing
  negative values to string.slice and winding up with odd results.
Merge pull request #1429 from greggian/fix-getsource-clamping

Fix ESlint.getSource() clamping