add missing CAutoFile::IsNull() check in main
add missing CAutoFile::IsNull() check in main

Rebased-From: 84857e87e42e412336ea60d0f8544c1679bab827
Github-Pull: #5437

Infernoman/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin