Update HistoricsApi.java

Line 35 was creating a push stream unlinked to the historic query. This change resolves this issue