if you are going to use the Switch node to filter out messages in a sequence, you must tick the "recreate message sequences" option at the bottom of its edit dialog. This ensures the meta data for the whole sequence is updated to reflect the removed items.