Fixed some null plug crashes

RenderManShader.acceptsInput used to crash when you called acceptsInput( None ) on one of its input plugs. This was bad. Now it doesn't. This is good.

Also, a couple of methods in Gaffer::Box weren't checking for null plugs, so I've fixed that too