Avoid errors attempting to convert PDOStatement instance to string when outputting exception messages