Fix a bug where StreamingClient will throw NPE if not initialized