Fix crash with invalid input.

When the scene description file was invalid the UserInterface crashed
because it could not dipose the images.