Fix undefined indexes
Merge branch 'master' of https://github.com/clarkerubber/lichessPDFExporter

* 'master' of https://github.com/clarkerubber/lichessPDFExporter:
  Fix undefined indexes