By always setting the position of the next event, the replication cannot break if the slave server has to reconnect after receiving an event that was generated by the binlogfilter.