Added defensive code in scorecard generation

Where South Africa is monitoring multiple medicines but not all in the same months, the generator was looking for medicines that weren't being captured, causing the generation to break
Location check