fixed crash after assembly deletion.

appleseed would crash in the following scenario:

    1. render a scene with two assemblies.
    2. delete one of the assembly.
    3. render again.