"There are actors who have died during the production of a film....
Well, the only one I can think of is Oliver Reed in Gladiator, didn't they CGI his face onto a body double for the film.
There is also the CGI route as well, didn't Lucas use CGI in a scene in one of the Star Wars films (a new hope???) where Han Solo steps over Jabba's tail?
I wonder why I thought of Jobba..... eh... Jabba the Hutt, the intergalactic crime lord and gangster who uses a retinue of criminals, yes -men... eh yes-aliens, and bodyguards to operate his criminal empire. And he wasn't particularly fond of androids either.