Bitcoin-Qt: extend some checks for valid model pointers
Merge pull request #2926 from Diapolo/model_checks

Bitcoin-Qt: extend some checks for valid model pointers