Elastic: fix null ref during upgrades
Elastic: fix null ref during upgrades

mqbk/Opserver,opserver/Opserver,manesiotise/Opserver,GABeech/Opserver,opserver/Opserver,GABeech/Opserver,rducom/Opserver,manesiotise/Opserver,jeddytier4/Opserver,rducom/Opserver,mqbk/Opserver,opserver/Opserver,manesiotise/Opserver,jeddytier4/Opserver