Make sure pwalletMain is not null whenever it's used in PS client (#2190)
Make sure pwalletMain is not null whenever it's used in PS client (#2190)

* Make sure pwalletMain is not null whenever it's used in PS client

* partially revert

ivansib/sibcoin,ivansib/sibcoin,ivansib/sibcoin,ivansib/sibcoin,ivansib/sibcoin,ivansib/sibcoin