CaputreScene() crash with a cooked build

I fixed this by making a check that TextureTarget was not null.