Fix an IndexOutOfBoundsException: Index: 0

In SaveTimerTask.java

Fixes #2039