I've just copied the line above and pasted it in new line below. After that I've changed the parameters to "task.save_world = true" and it worked. The problem occurred when I pasted a new line from an external source with the "save_world" parameter, even though it had the same indentation in text.
Thank you very much for support. I'm happy now