fix exception for CommandEdit of invalid index case and add feedback for that case