Fixed bugs in Switch and ShaderAssignment acceptsInput() methods.

They would attempt to deference NULL pointers when acceptsInput( NULL ) was called.