[PROVISIONING] added some NULL handling

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>