Fix crash when profile not specified

I would expect that if I passed in something explicitly it would be authoritative; this seems good if the endpoint is not passed though