Fix NPE which only seems to occur when proxying the getProfiles() requests, could be chunking causing that.