Fixed bugs in Switch and ShaderAssignment acceptsInput() methods.

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