Update getThreadHistory.js (#827)
Update getThreadHistory.js (#827)

I'm seeing failures on line 374, cannot get 'id' of null.  This fix obviously protects the code and prevents the error, but I have no idea of any underlining consequences Raised as issue #824
Schmavery/facebook-chat-api