Fix call on non-object in ping() with PDO wrapper
Fix call on non-object in ping() with PDO wrapper

Fixes an issue when calling `ping()` where `$this->platform` is null. Happened to me because using the `'pdo'` param bypasses the `connect()` method and the platform is never set without explicitly calling the method.

Not sure if this is the most elegant way to deal with this but it worked enough for my purposes so I figured I should submit a PR.
wuxu92/dbal,stchr/dbal,janschoenherr/dbal,doctrine/dbal,nfrignani/dbal,vutung2311/dbal,zeroedin-bill/dbal,vortgo/dbal,drieschel/dbal,DHager/dbal,v-bartusevicius/dbal,nfrignani/dbal,stchr/dbal,stof/dbal,vutung2311/dbal,lcobucci/dbal,DHager/dbal,AlexDpy/dbal,AlexDpy/dbal,mikeSimonson/dbal,vortgo/dbal,BenMorel/dbal,doctrine/dbal,shivergard/dbal,gencer/dbal,drieschel/dbal,deeky666/dbal,gencer/dbal,mikeSimonson/dbal,lafourchette/dbal,janschoenherr/dbal,wuxu92/dbal,lcobucci/dbal,Tobion/dbal,lafourchette/dbal,bspeterson/dbal,helicon-os/doctrine-dbal,Tobion/dbal,shivergard/dbal,BenMorel/dbal,mRoca/dbal,mRoca/dbal,kimhemsoe/dbal,kimhemsoe/dbal,deeky666/dbal,helicon-os/doctrine-dbal,stof/dbal,v-bartusevicius/dbal,zeroedin-bill/dbal,bspeterson/dbal