controlled missing tenantid header error

#### Reviewers
@jframos @flopezag

#### Description
FIX missing tenantid header error

#### Test
Tested locally
Both expressions are equivalent.
The use of "null != object" is an old practice from languages where it is valid to write "if (object = null)" and accidentally assign null to the object. Not java case though.