Fix a bug when cancelling from the LoadFileView without any statements loaded