reader: fix IndexError in Reader._handle_message func