When (a) the deceased has made a will, but has not appointed an executor, or (b) the deceased has appointed an executor who is legally incapable or refuses to act, or who has died before the testator or before he has proved the will, or (c) the executor dies after having proved the will, but before he has administered all the estate of...