Fixed variable initialisation in case there is empty attribute in the APVI JSON file