Better error in renameTask if task doesn't exist. Closes gh-1058.

* Also, instead of throwing an exception, just log the error message.