Not doing this appeared to corrupt the composited buffer somehow and return a black image if there were two empty texture connections daisychained together on two AlphaOver instances.
Sets a flag if the texture being sent to the shader is null
General code cleanup and easier maintenance.