Prevent exception on File > New.