fix when the legalprofile is not specified

- if backend receives an 'undefined' legalprofile uses the default one