Minor bugfix for PDO error handling for PHP < 5.3.x.