Fix updatePrincipalCredential

This function does not work with at least the latest 2 versions of crowd, I originally assumed this to be a [crowd bug](https://support.atlassian.com/browse/CWDSUP-8487) but turns out it was not.