controlled missing tenantid header error

#### Reviewers
@jframos @flopezag

#### Description
FIX missing tenantid header error

#### Test
Tested locally
Strange comparator order. If you say me that it is working, I accept it but I would prefer to put in that way:

if (authentication.getCredentials() != null) {