fixed NPE when canceling file load dialog