Fixed bugs in Switch and ShaderAssignment acceptsInput() methods.

They would attempt to deference NULL pointers when acceptsInput( NULL ) was called.
Merge pull request #705 from johnhaddon/nullInputAcceptance

Fixed bugs in Switch and ShaderAssignment acceptsInput() methods.