EditBoard: fix error handling in piece setting.