Added check for existing addWithCredentials value before setting

The solution suggested here https://github.com/jpillora/xdomain/issues/21 did not work as xdomain later sets `xhook.addWithCredentials = true`. 

- Added check for existing addWithCredentials value