Fix NPE in StreamTestSupport

Only call stop in cleanup if node instance is not null.