If the sim didn't die at home, the gravestone might be in one of their housemates' inventory. Did you check that? They could also be in the mausoleum, not the actual graveyard. You'd have to take the gravestone out of the mausoleum to place it in the graveyard.