minor cleanup for exception handling
PDOException has no previous(), oh the consistency ...
Merge pull request #3686 from owncloud/minor_exception_cleanup

minor cleanup for exception handling