Revert "Avoid usage of instanceof to check for WebDAV exceptions"

This reverts commit c69edafc0503c76db704a5916981263c2f336e11.