Tanzanian president John Magufuli’s death came after weeks of denial, but reporting on the fitness of African leaders can be perilous for journalists