Make sure we have a working PDO instance before clearing temp tables in the tearDown. Fixes #302.
Merge pull request #303 from androa/issue-302

Make sure we have a working PDO instance before clearing temp tables