bugfix: fix when press cancel on export canvas to file.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>