Bug#3506: handling of Item with non-trailing ',' in EditLineByColumn():1544

Potential fix for bug#3506(https://cfengine.com/dev/issues/3506#note-2); see redmine thread.