fixed bug: if getTaskIndexArray() is called with 'add task1' it doesn't return null