Prevent untitled file from returning an error