coverity fix

Static analyzer complain about having possible null value.

Change-Id: I5aef03c0c6e5b569fb3f9a25aba9c1d7a856f36f
Signed-off-by: pkliczewski <piotr.kliczewski@gmail.com>