Update modmatrix.user.js

Fixed issue when reaching the end of the log.
Merge pull request #1 from LowSociety/patch-1

Update modmatrix.user.js