[PROVISIONING] added some NULL case handlings

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