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


Former-commit-id: 0d0357eac89f1cd2a7fc9b7da381a297af40b3e6
syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin