There are no debug tools when running XenMobile so I have limited possibility to debug (alert being one of them). That is how I tracked the error down to the second call.
Update provided by @Selfelected: The technology used for this project is Javascript in a Xenmobile environment. It appears that SNI had to be enabled in XenMobile/web browser.