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

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

Electronic-Gulden-Foundation/egulden,ArgonToken/ArgonToken,RyanLucchese/energi,DynamicCoinOrg/DMC,mockcoin/mockcoin,dmrtsvetkov/flowercoin,CoinProjects/AmsterdamCoin-v4,nmarley/dash,aburan28/elements,pelorusjack/BlockDX,UdjinM6/dash,UdjinM6/dash,truthcoin/blocksize-market,midnight-miner/LasVegasCoin,PIVX-Project/PIVX,coinkeeper/2015-06-22_18-52_viacoin,BlockchainTechLLC/3dcoin,jtimon/elements,PIVX-Project/PIVX,my-first/octocoin,RibbitFROG/ribbitcoin,benzmuircroft/REWIRE.io,PandaPayProject/PandaPay,crowning-/dash,dgenr8/bitcoinxt,droark/elements,grumpydevelop/singularity,xawksow/GroestlCoin,my-first/octocoin,Bloom-Project/Bloom,putinclassic/putic,xuyangcn/opalcoin,kleetus/bitcoinxt,dgenr8/bitcoinxt,fussl/elements,MazaCoin/maza,Thracky/monkeycoin,Electronic-Gulden-Foundation/egulden,alejandromgk/Lunar,MazaCoin/mazacoin-new,willwray/dash,dmrtsvetkov/flowercoin,GwangJin/gwangmoney-core,jmgilbert2/energi,Mrs-X/PIVX,npccoin/npccoin,supcoin/supcoin,ColossusCoinXT/ColossusCoinXT,MazaCoin/maza,Mrs-X/Darknet,terracoin/terracoin,rsdevgun16e/energi,OstlerDev/florincoin,grumpydevelop/singularity,koharjidan/litecoin,keesdewit82/LasVegasCoin,genavarov/brcoin,rdqw/sscoin,puticcoin/putic,oklink-dev/bitcoin,crowning-/dash,presstab/PIVX,truthcoin/blocksize-market,mockcoin/mockcoin,Kenwhite23/litecoin,ediston/energi,MazaCoin/maza,genavarov/lamacoin,mikehearn/bitcoinxt,upgradeadvice/MUE-Src,inkvisit/sarmacoins,droark/elements,willwray/dash,keesdewit82/LasVegasCoin,dev1972/Satellitecoin,Vsync-project/Vsync,ionomy/ion,pstratem/elements,OstlerDev/florincoin,NunoEdgarGub1/elements,RyanLucchese/energi,OmniLayer/omnicore,mycointest/owncoin,xawksow/GroestlCoin,zottejos/merelcoin,pinkevich/dash,octocoin-project/octocoin,Vsync-project/Vsync,droark/elements,genavarov/lamacoin,GwangJin/gwangmoney-core,NunoEdgarGub1/elements,cerebrus29301/crowncoin,inkvisit/sarmacoins,antcheck/antcoin,slingcoin/sling-market,my-first/octocoin,LIMXTEC/DMDv3,midnight-miner/LasVegasCoin,Thracky/monkeycoin,ivansib/sibcoin,joulecoin/joulecoin,fullcoins/fullcoin,ColossusCoinXT/ColossusCoinXT,antcheck/antcoin,Kenwhite23/litecoin,gwillen/elements,terracoin/terracoin,48thct2jtnf/P,cerebrus29301/crowncoin,freelion93/mtucicoin,xuyangcn/opalcoin,florincoin/florincoin,Kenwhite23/litecoin,diggcoin/diggcoin,worldbit/worldbit,okinc/bitcoin,gwillen/elements,mapineda/litecoin,pascalguru/florincoin,thelazier/dash,RibbitFROG/ribbitcoin,aburan28/elements,genavarov/brcoin,genavarov/brcoin,koharjidan/litecoin,coinkeeper/2015-06-22_18-52_viacoin,sipa/elements,upgradeadvice/MUE-Src,lakepay/lake,xuyangcn/opalcoin,OmniLayer/omnicore,pstratem/elements,MazaCoin/mazacoin-new,ionomy/ion,ArgonToken/ArgonToken,Petr-Economissa/gvidon,truthcoin/blocksize-market,crowning-/dash,kleetus/bitcoinxt,alejandromgk/Lunar,thelazier/dash,rdqw/sscoin,slingcoin/sling-market,OstlerDev/florincoin,sipa/elements,LIMXTEC/DMDv3,ionomy/ion,jtimon/elements,Rav3nPL/doubloons-0.10,Kenwhite23/litecoin,dmrtsvetkov/flowercoin,zottejos/merelcoin,keesdewit82/LasVegasCoin,MonetaryUnit/MUE-Src,mapineda/litecoin,jmgilbert2/energi,aburan28/elements,mycointest/owncoin,BlockchainTechLLC/3dcoin,oklink-dev/bitcoin,inkvisit/sarmacoins,antcheck/antcoin,schinzelh/dash,dashpay/dash,Darknet-Crypto/Darknet,slingcoin/sling-market,upgradeadvice/MUE-Src,genavarov/ladacoin,aburan28/elements,m0gliE/fastcoin-cli,jtimon/elements,antcheck/antcoin,supcoin/supcoin,axelxod/braincoin,Kenwhite23/litecoin,48thct2jtnf/P,OstlerDev/florincoin,ahmedbodi/test2,zottejos/merelcoin,dev1972/Satellitecoin,genavarov/lamacoin,worldbit/worldbit,octocoin-project/octocoin,midnight-miner/LasVegasCoin,ahmedbodi/test2,ptschip/bitcoinxt,mikehearn/bitcoinxt,benzmuircroft/REWIRE.io,droark/elements,MazaCoin/maza,NunoEdgarGub1/elements,dev1972/Satellitecoin,xawksow/GroestlCoin,inkvisit/sarmacoins,zottejos/merelcoin,DMDcoin/Diamond,mapineda/litecoin,florincoin/florincoin,freelion93/mtucicoin,genavarov/ladacoin,Mrs-X/Darknet,midnight-miner/LasVegasCoin,inkvisit/sarmacoins,fussl/elements,slingcoin/sling-market,m0gliE/fastcoin-cli,mockcoin/mockcoin,joulecoin/joulecoin,dgenr8/bitcoinxt,capitalDIGI/DIGI-v-0-10-4,slingcoin/sling-market,rsdevgun16e/energi,MazaCoin/mazacoin-new,gwillen/elements,Rav3nPL/doubloons-0.10,worldbit/worldbit,ArgonToken/ArgonToken,apoelstra/elements,axelxod/braincoin,pinkevich/dash,ahmedbodi/test2,HeliumGas/helium,UdjinM6/dash,RibbitFROG/ribbitcoin,projectinterzone/ITZ,nmarley/dash,DMDcoin/Diamond,axelxod/braincoin,48thct2jtnf/P,OmniLayer/omnicore,genavarov/ladacoin,ivansib/sib16,Petr-Economissa/gvidon,Mrs-X/Darknet,DMDcoin/Diamond,ivansib/sibcoin,tropa/axecoin,DynamicCoinOrg/DMC,xawksow/GroestlCoin,Mrs-X/Darknet,rsdevgun16e/energi,Mrs-X/PIVX,Electronic-Gulden-Foundation/egulden,okinc/bitcoin,mycointest/owncoin,ionomy/ion,capitalDIGI/litecoin,ticclassic/ic,octocoin-project/octocoin,rsdevgun16e/energi,schinzelh/dash,LIMXTEC/DMDv3,okinc/bitcoin,axelxod/braincoin,Bloom-Project/Bloom,thelazier/dash,xuyangcn/opalcoin,genavarov/lamacoin,PIVX-Project/PIVX,tropa/axecoin,joulecoin/joulecoin,Mrs-X/PIVX,Bloom-Project/Bloom,CoinProjects/AmsterdamCoin-v4,benzmuircroft/REWIRE.io,schinzelh/dash,ivansib/sibcoin,Mrs-X/Darknet,BlockchainTechLLC/3dcoin,jmgilbert2/energi,apoelstra/elements,presstab/PIVX,Petr-Economissa/gvidon,grumpydevelop/singularity,terracoin/terracoin,Vsync-project/Vsync,tropa/axecoin,ingresscoin/ingresscoin,biblepay/biblepay,ticclassic/ic,oklink-dev/bitcoin,supcoin/supcoin,pelorusjack/BlockDX,ColossusCoinXT/ColossusCoinXT,joulecoin/joulecoin,droark/elements,capitalDIGI/litecoin,fussl/elements,lakepay/lake,diggcoin/diggcoin,mycointest/owncoin,koharjidan/litecoin,nmarley/dash,Kenwhite23/litecoin,rdqw/sscoin,MazaCoin/maza,grumpydevelop/singularity,dashpay/dash,HeliumGas/helium,capitalDIGI/litecoin,truthcoin/blocksize-market,mapineda/litecoin,thelazier/dash,dmrtsvetkov/flowercoin,NunoEdgarGub1/elements,NunoEdgarGub1/elements,fullcoins/fullcoin,supcoin/supcoin,m0gliE/fastcoin-cli,alejandromgk/Lunar,koharjidan/litecoin,CoinProjects/AmsterdamCoin-v4,RyanLucchese/energi,alejandromgk/Lunar,oklink-dev/bitcoin,ColossusCoinXT/ColossusCoinXT,PIVX-Project/PIVX,npccoin/npccoin,gwillen/elements,48thct2jtnf/P,PIVX-Project/PIVX,DynamicCoinOrg/DMC,rdqw/sscoin,BlockchainTechLLC/3dcoin,aspirecoin/aspire,puticcoin/putic,gwillen/elements,biblepay/biblepay,KibiCoin/kibicoin,my-first/octocoin,dashpay/dash,48thct2jtnf/P,okinc/bitcoin,RyanLucchese/energi,upgradeadvice/MUE-Src,ticclassic/ic,upgradeadvice/MUE-Src,dmrtsvetkov/flowercoin,MonetaryUnit/MUE-Src,Darknet-Crypto/Darknet,florincoin/florincoin,Rav3nPL/doubloons-0.10,capitalDIGI/litecoin,HeliumGas/helium,diggcoin/diggcoin,ingresscoin/ingresscoin,benzmuircroft/REWIRE.io,CoinProjects/AmsterdamCoin-v4,worldbit/worldbit,aspirecoin/aspire,mockcoin/mockcoin,RibbitFROG/ribbitcoin,cerebrus29301/crowncoin,freelion93/mtucicoin,genavarov/brcoin,kleetus/bitcoinxt,HeliumGas/helium,mycointest/owncoin,worldbit/worldbit,terracoin/terracoin,my-first/octocoin,NunoEdgarGub1/elements,Petr-Economissa/gvidon,freelion93/mtucicoin,okinc/bitcoin,pstratem/elements,KibiCoin/kibicoin,projectinterzone/ITZ,npccoin/npccoin,schinzelh/dash,fullcoins/fullcoin,ivansib/sib16,capitalDIGI/DIGI-v-0-10-4,mockcoin/mockcoin,truthcoin/blocksize-market,axelxod/braincoin,Electronic-Gulden-Foundation/egulden,jtimon/elements,ticclassic/ic,crowning-/dash,capitalDIGI/DIGI-v-0-10-4,npccoin/npccoin,RyanLucchese/energi,putinclassic/putic,MonetaryUnit/MUE-Src,MazaCoin/maza,jmgilbert2/energi,crowning-/dash,keesdewit82/LasVegasCoin,CoinProjects/AmsterdamCoin-v4,schinzelh/dash,alejandromgk/Lunar,antcheck/antcoin,Thracky/monkeycoin,m0gliE/fastcoin-cli,slingcoin/sling-market,Bloom-Project/Bloom,ivansib/sib16,rdqw/sscoin,ArgonToken/ArgonToken,ingresscoin/ingresscoin,BlockchainTechLLC/3dcoin,Bloom-Project/Bloom,putinclassic/putic,pinkevich/dash,thelazier/dash,Petr-Economissa/gvidon,aspirecoin/aspire,xawksow/GroestlCoin,Electronic-Gulden-Foundation/egulden,apoelstra/elements,PIVX-Project/PIVX,ediston/energi,midnight-miner/LasVegasCoin,presstab/PIVX,MonetaryUnit/MUE-Src,axelxod/braincoin,pascalguru/florincoin,mockcoin/mockcoin,putinclassic/putic,jmgilbert2/energi,freelion93/mtucicoin,ivansib/sib16,Thracky/monkeycoin,DMDcoin/Diamond,mikehearn/bitcoinxt,MazaCoin/mazacoin-new,dev1972/Satellitecoin,Rav3nPL/doubloons-0.10,m0gliE/fastcoin-cli,Thracky/monkeycoin,joulecoin/joulecoin,OstlerDev/florincoin,pinkevich/dash,Mrs-X/Darknet,dgenr8/bitcoinxt,KibiCoin/kibicoin,pstratem/elements,Rav3nPL/doubloons-0.10,ticclassic/ic,florincoin/florincoin,octocoin-project/octocoin,supcoin/supcoin,willwray/dash,Thracky/monkeycoin,mapineda/litecoin,HeliumGas/helium,terracoin/terracoin,mycointest/owncoin,CoinProjects/AmsterdamCoin-v4,DMDcoin/Diamond,diggcoin/diggcoin,Rav3nPL/doubloons-0.10,biblepay/biblepay,pinkevich/dash,gwillen/elements,ivansib/sibcoin,genavarov/brcoin,inkvisit/sarmacoins,LIMXTEC/DMDv3,ahmedbodi/test2,crowning-/dash,fullcoins/fullcoin,alejandromgk/Lunar,presstab/PIVX,PIVX-Project/PIVX,coinkeeper/2015-06-22_18-52_viacoin,puticcoin/putic,projectinterzone/ITZ,jtimon/elements,Vsync-project/Vsync,projectinterzone/ITZ,ingresscoin/ingresscoin,biblepay/biblepay,freelion93/mtucicoin,apoelstra/elements,nmarley/dash,MazaCoin/mazacoin-new,kleetus/bitcoinxt,pascalguru/florincoin,OstlerDev/florincoin,RibbitFROG/ribbitcoin,biblepay/biblepay,putinclassic/putic,UdjinM6/dash,midnight-miner/LasVegasCoin,rsdevgun16e/energi,Vsync-project/Vsync,ptschip/bitcoinxt,coinkeeper/2015-06-22_18-52_viacoin,genavarov/lamacoin,ahmedbodi/test2,capitalDIGI/DIGI-v-0-10-4,fussl/elements,apoelstra/elements,presstab/PIVX,KibiCoin/kibicoin,pelorusjack/BlockDX,ionomy/ion,sipa/elements,puticcoin/putic,ArgonToken/ArgonToken,mikehearn/bitcoinxt,projectinterzone/ITZ,presstab/PIVX,ingresscoin/ingresscoin,Vsync-project/Vsync,HeliumGas/helium,Electronic-Gulden-Foundation/egulden,KibiCoin/kibicoin,pelorusjack/BlockDX,dev1972/Satellitecoin,jmgilbert2/energi,Petr-Economissa/gvidon,ticclassic/ic,PIVX-Project/PIVX,PandaPayProject/PandaPay,ediston/energi,MonetaryUnit/MUE-Src,oklink-dev/bitcoin,aspirecoin/aspire,aspirecoin/aspire,npccoin/npccoin,tropa/axecoin,upgradeadvice/MUE-Src,dmrtsvetkov/flowercoin,willwray/dash,benzmuircroft/REWIRE.io,florincoin/florincoin,ionomy/ion,rdqw/sscoin,zottejos/merelcoin,willwray/dash,pascalguru/florincoin,PandaPayProject/PandaPay,terracoin/terracoin,ahmedbodi/test2,koharjidan/litecoin,DynamicCoinOrg/DMC,octocoin-project/octocoin,aburan28/elements,grumpydevelop/singularity,nmarley/dash,Bloom-Project/Bloom,nmarley/dash,xawksow/GroestlCoin,PandaPayProject/PandaPay,antcheck/antcoin,fullcoins/fullcoin,benzmuircroft/REWIRE.io,coinkeeper/2015-06-22_18-52_viacoin,kleetus/bitcoinxt,xuyangcn/opalcoin,RibbitFROG/ribbitcoin,dashpay/dash,lakepay/lake,rsdevgun16e/energi,zottejos/merelcoin,ColossusCoinXT/ColossusCoinXT,GwangJin/gwangmoney-core,OmniLayer/omnicore,ColossusCoinXT/ColossusCoinXT,pstratem/elements,sipa/elements,genavarov/ladacoin,capitalDIGI/DIGI-v-0-10-4,diggcoin/diggcoin,OmniLayer/omnicore,puticcoin/putic,ediston/energi,xuyangcn/opalcoin,cerebrus29301/crowncoin,ptschip/bitcoinxt,OmniLayer/omnicore,genavarov/lamacoin,keesdewit82/LasVegasCoin,KibiCoin/kibicoin,PIVX-Project/PIVX,jtimon/elements,capitalDIGI/DIGI-v-0-10-4,okinc/bitcoin,cerebrus29301/crowncoin,aspirecoin/aspire,joulecoin/joulecoin,grumpydevelop/singularity,biblepay/biblepay,genavarov/ladacoin,lakepay/lake,octocoin-project/octocoin,DMDcoin/Diamond,lakepay/lake,kleetus/bitcoinxt,48thct2jtnf/P,mikehearn/bitcoinxt,LIMXTEC/DMDv3,Mrs-X/PIVX,mapineda/litecoin,ptschip/bitcoinxt,truthcoin/blocksize-market,capitalDIGI/litecoin,genavarov/brcoin,ivansib/sib16,pelorusjack/BlockDX,DynamicCoinOrg/DMC,capitalDIGI/litecoin,Darknet-Crypto/Darknet,ediston/energi,pinkevich/dash,fussl/elements,sipa/elements,fullcoins/fullcoin,pstratem/elements,ediston/energi,biblepay/biblepay,ptschip/bitcoinxt,biblepay/biblepay,LIMXTEC/DMDv3,puticcoin/putic,koharjidan/litecoin,ivansib/sibcoin,aburan28/elements,Darknet-Crypto/Darknet,supcoin/supcoin,MazaCoin/mazacoin-new,ivansib/sibcoin,RyanLucchese/energi,PandaPayProject/PandaPay,MonetaryUnit/MUE-Src,fussl/elements,PandaPayProject/PandaPay,npccoin/npccoin,pelorusjack/BlockDX,droark/elements,apoelstra/elements,schinzelh/dash,lakepay/lake,ArgonToken/ArgonToken,tropa/axecoin,sipa/elements,pascalguru/florincoin,worldbit/worldbit,genavarov/ladacoin,oklink-dev/bitcoin,m0gliE/fastcoin-cli,cerebrus29301/crowncoin,GwangJin/gwangmoney-core,Mrs-X/PIVX,Darknet-Crypto/Darknet,Mrs-X/PIVX,ivansib/sib16,BlockchainTechLLC/3dcoin,florincoin/florincoin,dashpay/dash,DynamicCoinOrg/DMC,UdjinM6/dash,dev1972/Satellitecoin,nmarley/dash,putinclassic/putic,pascalguru/florincoin,ptschip/bitcoinxt,diggcoin/diggcoin,tropa/axecoin,Darknet-Crypto/Darknet,coinkeeper/2015-06-22_18-52_viacoin,my-first/octocoin,ingresscoin/ingresscoin,keesdewit82/LasVegasCoin,mikehearn/bitcoinxt,willwray/dash