Revert "Correct refresh canvas and numeric panel when select invalid or empty file after a valid one"

This reverts commit 697b67afad31ed8d2b506ee99d30d8b742ccd347.