Check for pdo object in db abstraction layer.
(cherry picked from commit c4f6e99bb078360b1a8f69bb2019d6a3b2f1baa5)