Fix get_dialogs could fail when count % chunk_size = 0
Fix get_dialogs could fail when count % chunk_size = 0

Closes #3971.

LonamiWebs/Telethon,LonamiWebs/Telethon,LonamiWebs/Telethon,LonamiWebs/Telethon