small fix to break the loop when parent location is null (for india)