Changed INVALID_COMMAND to INVALID_ARGUMENT for the case with no task ID
in EditCommand.