Fix a sonar warning

Just be explicit about expected null-ness.

Change-Id: I3f9363878c0e985bc1fedafe3af05d3e685be400
Signed-off-by: Robert Varga <rovarga@cisco.com>