analytics/lib/counts.py: Fix error in count_message_type_by_user_query.
analytics/lib/counts.py: Fix error in count_message_type_by_user_query.

This query counts the number of messages each user has sent, subgroup'd by
whether the message was a private_message (PM or sent to a huddle), sent to
a 'private_stream', or sent to a 'public_stream'.

We need to join on zerver_stream to find out whether stream messages were
sent to public streams or private streams, but it needs to be a LEFT JOIN
rather than a JOIN so that we preserve the messages sent to non-streams.

amyliu345/zulip,hackerkid/zulip,timabbott/zulip,vabs22/zulip,christi3k/zulip,susansls/zulip,jackrzhang/zulip,zulip/zulip,christi3k/zulip,JPJPJPOPOP/zulip,brockwhittaker/zulip,j831/zulip,sharmaeklavya2/zulip,zulip/zulip,timabbott/zulip,souravbadami/zulip,dhcrzf/zulip,ryanbackman/zulip,dattatreya303/zulip,vaidap/zulip,amanharitsh123/zulip,hackerkid/zulip,andersk/zulip,dawran6/zulip,zulip/zulip,kou/zulip,mahim97/zulip,brockwhittaker/zulip,vabs22/zulip,zulip/zulip,vabs22/zulip,punchagan/zulip,souravbadami/zulip,andersk/zulip,synicalsyntax/zulip,verma-varsha/zulip,kou/zulip,souravbadami/zulip,sonali0901/zulip,tommyip/zulip,tommyip/zulip,dattatreya303/zulip,timabbott/zulip,hackerkid/zulip,JPJPJPOPOP/zulip,SmartPeople/zulip,samatdav/zulip,SmartPeople/zulip,jainayush975/zulip,JPJPJPOPOP/zulip,amyliu345/zulip,vabs22/zulip,JPJPJPOPOP/zulip,synicalsyntax/zulip,SmartPeople/zulip,jackrzhang/zulip,jainayush975/zulip,punchagan/zulip,dhcrzf/zulip,verma-varsha/zulip,jrowan/zulip,christi3k/zulip,timabbott/zulip,punchagan/zulip,andersk/zulip,susansls/zulip,amanharitsh123/zulip,christi3k/zulip,jainayush975/zulip,andersk/zulip,isht3/zulip,tommyip/zulip,blaze225/zulip,rishig/zulip,andersk/zulip,sharmaeklavya2/zulip,dhcrzf/zulip,kou/zulip,brockwhittaker/zulip,vaidap/zulip,punchagan/zulip,zulip/zulip,sonali0901/zulip,kou/zulip,mahim97/zulip,PhilSk/zulip,rishig/zulip,jrowan/zulip,sharmaeklavya2/zulip,Diptanshu8/zulip,eeshangarg/zulip,blaze225/zulip,Galexrt/zulip,jphilipsen05/zulip,samatdav/zulip,jackrzhang/zulip,samatdav/zulip,JPJPJPOPOP/zulip,isht3/zulip,dattatreya303/zulip,blaze225/zulip,amyliu345/zulip,christi3k/zulip,synicalsyntax/zulip,mahim97/zulip,zulip/zulip,souravbadami/zulip,aakash-cr7/zulip,vabs22/zulip,sonali0901/zulip,isht3/zulip,PhilSk/zulip,j831/zulip,dawran6/zulip,verma-varsha/zulip,Galexrt/zulip,dhcrzf/zulip,rishig/zulip,aakash-cr7/zulip,jackrzhang/zulip,j831/zulip,punchagan/zulip,hackerkid/zulip,dawran6/zulip,tommyip/zulip,samatdav/zulip,rht/zulip,shubhamdhama/zulip,jphilipsen05/zulip,blaze225/zulip,vaidap/zulip,showell/zulip,Diptanshu8/zulip,rht/zulip,rht/zulip,jphilipsen05/zulip,Galexrt/zulip,showell/zulip,SmartPeople/zulip,rht/zulip,susansls/zulip,amyliu345/zulip,rht/zulip,dhcrzf/zulip,j831/zulip,showell/zulip,souravbadami/zulip,blaze225/zulip,samatdav/zulip,brainwane/zulip,amanharitsh123/zulip,dattatreya303/zulip,vabs22/zulip,tommyip/zulip,blaze225/zulip,jackrzhang/zulip,jphilipsen05/zulip,Galexrt/zulip,dawran6/zulip,brockwhittaker/zulip,timabbott/zulip,synicalsyntax/zulip,jainayush975/zulip,tommyip/zulip,punchagan/zulip,showell/zulip,brockwhittaker/zulip,tommyip/zulip,kou/zulip,aakash-cr7/zulip,susansls/zulip,Diptanshu8/zulip,amanharitsh123/zulip,sharmaeklavya2/zulip,jainayush975/zulip,mahim97/zulip,shubhamdhama/zulip,Galexrt/zulip,PhilSk/zulip,susansls/zulip,sharmaeklavya2/zulip,rishig/zulip,sharmaeklavya2/zulip,rishig/zulip,timabbott/zulip,jrowan/zulip,mahim97/zulip,isht3/zulip,vaidap/zulip,susansls/zulip,ryanbackman/zulip,brockwhittaker/zulip,Galexrt/zulip,rht/zulip,rishig/zulip,SmartPeople/zulip,eeshangarg/zulip,dhcrzf/zulip,eeshangarg/zulip,shubhamdhama/zulip,vaidap/zulip,samatdav/zulip,verma-varsha/zulip,jrowan/zulip,shubhamdhama/zulip,andersk/zulip,amyliu345/zulip,jainayush975/zulip,shubhamdhama/zulip,jackrzhang/zulip,shubhamdhama/zulip,zulip/zulip,ryanbackman/zulip,amyliu345/zulip,timabbott/zulip,synicalsyntax/zulip,hackerkid/zulip,jphilipsen05/zulip,souravbadami/zulip,eeshangarg/zulip,dawran6/zulip,kou/zulip,ryanbackman/zulip,punchagan/zulip,brainwane/zulip,dhcrzf/zulip,verma-varsha/zulip,aakash-cr7/zulip,shubhamdhama/zulip,Galexrt/zulip,synicalsyntax/zulip,hackerkid/zulip,brainwane/zulip,isht3/zulip,jrowan/zulip,Diptanshu8/zulip,brainwane/zulip,showell/zulip,andersk/zulip,hackerkid/zulip,ryanbackman/zulip,jrowan/zulip,aakash-cr7/zulip,PhilSk/zulip,eeshangarg/zulip,vaidap/zulip,eeshangarg/zulip,showell/zulip,isht3/zulip,SmartPeople/zulip,ryanbackman/zulip,Diptanshu8/zulip,JPJPJPOPOP/zulip,sonali0901/zulip,Diptanshu8/zulip,christi3k/zulip,synicalsyntax/zulip,PhilSk/zulip,brainwane/zulip,dattatreya303/zulip,dattatreya303/zulip,j831/zulip,mahim97/zulip,amanharitsh123/zulip,j831/zulip,showell/zulip,amanharitsh123/zulip,rht/zulip,brainwane/zulip,brainwane/zulip,PhilSk/zulip,verma-varsha/zulip,eeshangarg/zulip,sonali0901/zulip,jphilipsen05/zulip,sonali0901/zulip,rishig/zulip,dawran6/zulip,kou/zulip,jackrzhang/zulip,aakash-cr7/zulip